package com.lxs.legou.order.config;

import com.lxs.legou.common.utils.IdWorker;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @Auther: Mcb
 * @Date: 2022/1/23 18:17
 * @Description:
 */
@Configuration
public class SnowflakeConfig {

    @Bean
    public IdWorker idWorker() {
        return new IdWorker(1, 1);
    }
}
